/*
 * @Author: wxinlong 3075748076@qq.com
 * @Date: 2023-06-17 10:29:08
 * @LastEditors: wxinlong 3075748076@qq.com
 * @LastEditTime: 2023-06-17 11:30:46
 * @Description: 文件路由
 * Copyright (c) 2023 by wxinlong 3075748076@qq.com, All Rights Reserved.
 */
const express = require('express')
const router = express.Router()
const fileController = require('../controllers/fileController')
const uploadMiddleware = require('../middleware/fileMiddleware')

// 目前只有一个上传文件接口
router.post('/file', uploadMiddleware, fileController.uploadFile)

module.exports = router
